
using System;
using MonoDevelop.Ide.Gui;
using Gtk;
using MonoDevelop.Components.Commands;
using MonoDevelop.Core.Gui;

namespace MonoDevelop.XamlDesigner
{
	public class DesignerPad : AbstractPadContent
	{
		VBox control;
		
		public DesignerPad ()
		{
			control = new VBox ();
            
			Toolbar toolbar = IdeApp.CommandService.CreateToolbar ("/MonoDevelop/XamlDesigner/ToolBar/DesignerPad");
			toolbar.ToolbarStyle = ToolbarStyle.Icons;
            toolbar.Orientation = Orientation.Vertical;
			toolbar.IconSize = IconSize.Dnd;
			//ImageService.
            
            ///MonoDevelop/XamlDesigner/ToolBar/DesignerPad
            /*
            ToggleToolButton SelectionToolToggleButton = new ToggleToolButton ();
			SelectionToolToggleButton.IconWidget = new Image ("md-xaml-selection-tool", IconSize.Menu);
			SelectionToolToggleButton.Toggled += new EventHandler (test);
			toolbar.Insert (SelectionToolToggleButton, 0);
            */
			control.PackStart (new Label("xaml tools:"),true, false, 0);//to test if it work
            control.PackEnd (toolbar, true, true, 0);
            
            control.ShowAll ();
		}
        /*
        public void test (object sender, EventArgs args)
        {
            ((View.XamlDesignView)IdeApp.Workbench.ActiveDocument.ActiveView).Controller.CurrentTool= null;
        }
         */
		public override Gtk.Widget Control {
			get { return control; }
		}
        
	}
}
